import { defineStore } from 'pinia'
import { ref } from 'vue'
const useUser = defineStore("user", {
    // 为了完整类型推理，推荐使用箭头函数
    state: () => {
        return {
            info: {}
        }
    },
    actions: {
        setUserInfo(data) {
            this.info = data
        }
    },
    persist: {
        enabled: true,
    }

});
export default useUser;